Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(LeftSidebar): remove unused NcListItem.isActive #10008

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Jul 18, 2023

☑️ Resolves

active state of NcListItem link is controlled by RouterLink since nextcloud-libraries/nextcloud-vue#3775

So NcListItem doesn't use isActive prop and we don't need to compute isActive flag manually.

Removing this computed also a very little bit decreases a number of re-renderings on each conversation switch (Conversation.vue is not re-rendering now, but NcListItem is re-rendering anyway).

🖼️ Screenshots

No visual changes

🚧 Tasks

  • Remove unused NcListItem.isActive
  • Remove unused isActive computed

🏁 Checklist

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme
Copy link
Contributor Author

ShGKme commented Jul 18, 2023

/backport to stable27

@ShGKme ShGKme enabled auto-merge July 18, 2023 14:04
@ShGKme ShGKme merged commit 13c99ab into master Jul 18, 2023
18 checks passed
@ShGKme ShGKme deleted the fix/remove-unused-isActive-prop branch July 18, 2023 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants